package com.hmall.order.interceptor;

/**
 * 线程类
 */
public class ThreadLocals {

    private static ThreadLocal<Long>  threadLocal = new ThreadLocal<>();

    /**
     *  从登录那里 获取ID 来判断是谁的账号
     * @param id
     */
    public static void setthread(Long id){
        threadLocal.set(id);

    }

    public static ThreadLocal getthread(){
        return threadLocal;
    }


}
